import Vue from 'vue'
import Router from 'vue-router'

import AppLayout from '@/components/AppLayout'
import login from '@/pages/login'
import Blank from '@/components/Blank'


import settings from '@/pages/settings/route'
import exhibit from '@/pages/exhibit/route'
import area from '@/pages/area/route'
import ibeacon from '@/pages/ibeacon/route'
import others from '@/pages/others/route'
import arrangement from '@/pages/arrangement/route'
import feedback from '@/pages/feedback/route'
import html5 from '@/pages/html5/route'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/html5',
      name: 'html5',
      component: Blank,
      children: html5
    },
    {
      path:'/',
      component:AppLayout,
      meta:{title:'首页'},
      children:[
        settings,
        exhibit,
        area,
        ibeacon,
        others,
        arrangement,
        feedback
      ]
    }
  ]
})
